const webpack = require("webpack")
module.exports = {
    lintOnSave: true,

    devServer: {
        proxy: {
            // proxy all requests starting with /api to jsonplaceholder
            '/api': {
                target: 'http://192.168.0.104:8081', //代理接口
                changeOrigin: true,
                pathRewrite: {
                    '^/api': '/api' //代理的路径
                }
            }
        }
    },
    pluginOptions: new webpack.ProvidePlugin({
        jQuery: "jquery",
        $: "jquery"
    }),
    publicPath: './'
}